package com.zdzx.model.dic;

public enum ArticleType {
	
	NOTICE("notice","公告"), // 全部
	TEXT("text","文章"); // 认证

	private String key;
	private String value;
	
	private ArticleType(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		ArticleType[] values = ArticleType.values();
		for (ArticleType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
